import request from '@/utils/request'

// 查询来料检管理列表
export function listIncomingInspection(query) {
  return request({
    url: '/qualityManagement/incomingInspection/list',
    method: 'get',
    params: query
  })
}

// 查询来料检管理详细
export function getIncomingInspection(inspectionId) {
  return request({
    url: '/qualityManagement/incomingInspection/' + inspectionId,
    method: 'get'
  })
}

// 新增来料检管理
export function addIncomingInspection(data) {
  return request({
    url: '/qualityManagement/incomingInspection',
    method: 'post',
    data: data
  })
}

// 修改来料检管理
export function updateIncomingInspection(data) {
  return request({
    url: '/qualityManagement/incomingInspection',
    method: 'put',
    data: data
  })
}

// 删除来料检管理
export function delIncomingInspection(inspectionId) {
  return request({
    url: '/qualityManagement/incomingInspection/' + inspectionId,
    method: 'delete'
  })
}
